<?php
/**
 * Created by PhpStorm.
 * User: 刚
 * Date: 2017/7/25
 * Time: 23:32
 */
include_once('AbstractPageBuilder.php');
include_once('HTMLPage.php');

class HTMLPageBuilder extends AbstractPageBuilder
{
    private $page = NULL;

    function __construct()
    {
        $this->page = new HTMLPage();
    }

    function setTitle($title_in)
    {
        $this->page->setTitle($title_in);
    }

    function setHeading($heading_in)
    {
        $this->page->setHeading($heading_in);
    }

    function setText($text_in)
    {
        $this->page->setText($text_in);
    }

    function formatPage()
    {
        $this->page->formatPage();
    }

    function getPage()
    {
        return $this->page;
    }
}
